<?php
namespace App\Module\Admin\Request\Child;

use Hyperf\Validation\Request\FormRequest;

class UpdateRequest extends FormRequest{

    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'name'=>'required',
            'birth'=>'required|date|date_format:Y-m-d',
            'photo'=>'required|url',
            'parent_name'=>'required',
            'parent_mobile'=>'required|digits:11',
            'family_address'=>'required',
        ];
    }
}